#ifndef VELOCITY_MATCH_H
#define VELOCITY_MATCH_H

#include "SteeringBehaviour.h"

namespace Engine
{
	namespace SteeringBehaviourTypes
	{
		const unsigned int VELOCITY_MATCH = Hash("VelocityMatch");
	}

	class VelocityMatch : public SteeringBehaviour
	{
		private:
			float m_timeToTarget;

		public:
			//inherited from SteeringOutput
			void Update(SteeringOutput* output) override;
			const char* GetTypeName() const override {return "VelocityMatch";}
			unsigned int GetHash() const override {return SteeringBehaviourTypes::VELOCITY_MATCH;}

			VelocityMatch():m_timeToTarget(0.0f){}

			void SetTimeToTarget(float t) {m_timeToTarget = t;}

			float GetTimeToTarget() const {return m_timeToTarget;}
	};
}

#endif